const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

   @property(cc.ScrollView)
   scrollView:cc.ScrollView;

    onLoad() {
        // init logic
        //this.scrollView.scrollTo(new cc.Vec2(0,0))
    }

    close(){
        this.node.active = false;
    }

}
